﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ViewModelBase.cs" company="Marcin Jastrzebski">
//   Copyright (c) Marcin Jastrzebski (marcin@marcinj.net)
// </copyright>
// <summary>
//   The view model base.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace mPassRT.Common
{
    using System.Collections.Generic;

    /// <summary>The view model base.</summary>
    public abstract class PageViewModel : BindableBase, IPageViewModel
    {
        #region Public Methods and Operators

        /// <summary>Called when state is loaded.</summary>
        /// <param name="navigationParameter">The navigation parameter.</param>
        /// <param name="state">The page state.</param>
        public virtual void LoadState(object navigationParameter, Dictionary<string, object> state)
        {
        }

        /// <summary>Called when state needs to be saved.</summary>
        /// <param name="state">The state.</param>
        public virtual void SaveState(Dictionary<string, object> state)
        {
        }

        #endregion
    }
}